package com.developpez.Android.Agde;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class Viewthree extends Activity{
	private Button enregistrer ;
	private Button retour;

	public void onCreate(Bundle savedInstanceState) {
		//we create the view
		super.onCreate(savedInstanceState);
		//we put the components in the view
		setContentView(R.layout.viewthree);
	    
        enregistrer = (Button) findViewById(R.id.btnEnregistrer);
		
		enregistrer.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
			
				Intent intent = new Intent(Viewthree.this,Viewtwo.class);
	            startActivity(intent);
								
			}
		});
		
       retour = (Button) findViewById(R.id.btnretour);
		
		retour.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
			
				Intent intent = new Intent(Viewthree.this,Viewtwo.class);
	            startActivity(intent);
								
			}
		});
	}
}